<?php
	if($_SESSION['ingelogd']==1) {
		echo ("Welkom : ".$_SESSION['voornaam'] . " ". $_SESSION['achternaam']).' &#166; <a href="library/logout.php">Logout</a>';
	}else {
		?>
		<form method="POST" action="" class="loginForm">
        <table>
        <tr>
        <td style="width:70px;">
  		Username:</td><td> <input type="text" name="gebruikersnaam" id="user" size="15" /></td></tr><tr>
        <td style="width:70px;">
  		Password:</td><td> <input type="password" name="paswoord" id="pass" size="15" /></td>
        </tr>
        </table>
  		<div align="center">
    		<span><input type="button" value="Login" name="Inloggen" id="Inloggen" onclick="javascript:Login();"/><input type="button" value="Back" class="back"/></span>
  		</div>
		</form>
        
        <span class="login">Log in</span> <span class="separator"> | </span><span class="register">Register</span></div>
        <?php
	}
?>